<%@ page contentType="text/html; charset=UTF-8" language="java" import="java.util.*" errorPage="/error.jsp" %>
<%@ page import="com.beans.link.*" %>
<%@ page import="com.business.link.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
String username=request.getPathInfo();	
	 	username=username.replace("/","");
		LinkListBus llb=new LinkListBus();
		List linkList=llb.getLinkByUserName(username);
		
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>网址收藏</title>

</head>

<body>
<p>
  <%
if(linkList==null||linkList.size()==0) {
		out.println("该用户未收藏任何网址");
		
		}
		else {
		
		%>
</p>
<p>用户<font colr=red>[<%=username%>]</font> 所有提供出来的网址：</p>
<table>
<tr><th>编号</th><th width="50%">名称</th><th>描述</th></tr>
<p>&nbsp; </p>
<p>
  <%for(int i=0;i<linkList.size();i++) {
		Link link=(Link)linkList.get(i);
		%>
<tr><td><%=link.getLinkNo()%></td><td width="50%" align="center"><a href="<%=link.getLinkUrl()%>" target="_blank"><%=link.getLinkName()%></a></td><td><%=link.getLinkDemo()%></td></tr>
	    <p>
	      <%	
	}	}
%>
</p>
</p>
	    <p align="right"><a href="/blog/<%=username%>">返回博客主页</a>                </p>
</body>
</html>
